#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
@File Name  : sendMail.py
@Author     : LeeCQ
@Date-Time  : 2019/12/7 17:52

"""

import requests

host = 'https://service-cflolt8o-1259132595.gz.apigw.tencentcs.com/test/api_Email'
data = {'Records': 1,
    'cmqMsg': {
                'fromAddr': '1491311784@qq.com',
                'toAddr': '670343981@qq.com',
                'title': 'API测试',
                'body': 'GOOD, if you receive the Massage.'
}}
res = requests.post(host, data=data).text
print(res)
